home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 8 / FM Towns Free Software Collection 8.iso / t_os / zousan / src / graph.h < prev    next >
Text File  |  1994-06-01  |  2KB  |  86 lines

  1. /*
  2.  *   EGB graphics function     By N.Takahashi
  3.  *
  4.  *       ver0.1 1993/11/07
  5.  */
  6.  
  7. #ifndef __U_GRAPH
  8. #define __U_GRAPH
  9.  
  10. void G_dosterm( void );
  11. int G_color32k( int green, int red, int blue );
  12. void G_pset( int x, int y, int color );
  13. void G_put( int x1, int y1, int x2, int y2, void *pbuf );
  14. void G_get( int x1, int y1, int x2, int y2, void *pbuf );
  15. void G_palette( int color, int green, int red, int blue, int vsync );
  16. void G_rectangle( int x1, int y1, int x2, int y2 );
  17. void G_active( int page, int disp, int pri );
  18. void G_screen( int smode, int page );
  19. void G_cls( void );
  20. void G_enlarge( int mx, int my, int tx, int ty, int sx, int sy );
  21. void G_boxfull( int x1, int y1, int x2, int y2, int color );
  22. void G_box( int x1, int y1, int x2, int y2, int color );
  23.  
  24.  
  25. /* Global variable */
  26. extern char Egb[];
  27. extern char Para[];
  28.  
  29. #endif        /* __U_GRAPH */
  30.  
  31. /* 関数一覧 */
  32.  
  33. /*
  34. 1   関数 : G_enlarge
  35.    mx,my = 画面の拡大率
  36.    tx,ty = 表示開始位置
  37.    sx,sy = 画面の大きさ
  38.  
  39. 2   関数 : G_cls
  40.    引数なし
  41.  
  42. 3   関数 : G_screen
  43.    smode = 画面のモ-ド (1 - 18)
  44.    page  = ペ-ジ (0,1)
  45.  
  46. 4   関数 : G_active
  47.    page = ペ-ジ  (0,1)
  48.    disp = 表示ペ-ジ  (0 - 3)
  49.    pri  = プライオリティ  (0,1)
  50.  
  51. 5   関数 : G_palette
  52.    color = 色 (0-15-255)
  53.    green,red,blue = 設定階調 (0 - 255)
  54.    vsync = vsyncを待つかどうか (0,1) 1:待つ
  55.  
  56. 6   関数 : G_put
  57.    x1,y1,x2,y2 = 座標
  58.    pbuf = パタ-ンバッファ
  59.  
  60. 7   関数 : G_get
  61.    x1,y1,x2,y2 = 座標
  62.    pbuf = パタ-ンバッファ
  63.  
  64. 8   関数 : G_pset
  65.    x,y = 座標
  66.    color = 色 (0-15-255-32767 | 32768)
  67.  
  68. 9   関数 : G_color32k
  69.    green,red,blue = 設定階調 (0 - 255)
  70.  
  71. 10   関数 : G_rectangle
  72.    x1,y1,x2,y2 = 座標
  73.  
  74. 11   関数 : G_dosterm
  75.    DOSコンソールに戻す。
  76.  
  77. 12   関数 : G_boxfull
  78.    x1,y1,x2,y2 = 座標
  79.    color = 色 (0-15-255-32767 | 32768)
  80.  
  81. 13   関数 : G_box
  82.    x1,y1,x2,y2 = 座標
  83.    color = 色 (0-15-255-32767 | 32768)
  84.  
  85. */
  86.